package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.Homework222Mapper;
import com.ruoyi.system.domain.Homework222;
import com.ruoyi.system.service.IHomework222Service;

/**
 * 设备信息Service业务层处理
 *
 * @author ruoyi
 * @date 2023-12-16
 */
@Service
public class Homework222ServiceImpl implements IHomework222Service
{
    @Autowired
    private Homework222Mapper homework222Mapper;

    /**
     * 查询设备信息
     *
     * @param id 设备信息主键
     * @return 设备信息
     */
    @Override
    public Homework222 selectHomework222ById(Integer id)
    {
        return homework222Mapper.selectHomework222ById(id);
    }

    /**
     * 查询设备信息列表
     *
     * @param homework222 设备信息
     * @return 设备信息
     */
    @Override
    @DataScope(deptAlias = "d", userAlias = "u")
    public List<Homework222> selectHomework222List(Homework222 homework222)
    {
        return homework222Mapper.selectHomework222List(homework222);
    }

    /**
     * 新增设备信息
     *
     * @param homework222 设备信息
     * @return 结果
     */
    @Override
    public int insertHomework222(Homework222 homework222)
    {
        return homework222Mapper.insertHomework222(homework222);
    }

    /**
     * 修改设备信息
     *
     * @param homework222 设备信息
     * @return 结果
     */
    @Override
    public int updateHomework222(Homework222 homework222)
    {
        return homework222Mapper.updateHomework222(homework222);
    }

    /**
     * 批量删除设备信息
     *
     * @param ids 需要删除的设备信息主键
     * @return 结果
     */
    @Override
    public int deleteHomework222ByIds(Integer[] ids)
    {
        return homework222Mapper.deleteHomework222ByIds(ids);
    }

    /**
     * 删除设备信息信息
     *
     * @param id 设备信息主键
     * @return 结果
     */
    @Override
    public int deleteHomework222ById(Integer id)
    {
        return homework222Mapper.deleteHomework222ById(id);
    }
}
